import zmq
import json

def send_json_data(json_file_path):
    context = zmq.Context()
    socket = context.socket(zmq.REQ)
    socket.connect("tcp://localhost:5555")
    
    with open(json_file_path, 'r') as file:
        data = json.load(file)
    
    socket.send_string(json.dumps(data))
    response = socket.recv_string()
    print(response)

if __name__ == "__main__":
    send_json_data("mesg1.json")